Genesis 6:6-8

6:6 The Lord regretted that he had made humankind on the earth, and he was highly offended. 6:7 So the Lord said, “I will wipe humankind, whom I have created, from the face of the earth – everything from humankind to animals, including creatures that move on the ground and birds of the air, for I regret that I have made them.”

6:8 But Noah found favor in the sight of the Lord.